package com.wuzuqing.android.eightdiagrams.model;

/**
 * 作者：士元
 * 时间：2019/8/9 18:59
 * 邮箱：wuzuqing@linghit.com
 * 说明：文德神数分类
 */
public class CalculationTypeModel {
    private String number;
    private String name;
    private int geWei;
    private int shiWei;

    public String getNumber() {
        return number;
    }

    public void setId(String number) {
        this.number = number;
        int id = Integer.valueOf(number);
        shiWei = id / 10;
        geWei = id % 10;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getGeWei() {
        return geWei;
    }

    public int getShiWei() {
        return shiWei;
    }

//    @Override
//    public String toString() {
//        return "CalculationTypeModel{" +
//                "id=" + number +
//                ", name='" + name + '\'' +
//                '}' + "\n";
//    }
    @Override
    public String toString() {
        return name;
    }
}
